
**use county_turnout_replication.dta**

set matsize 200
sort newid congress
 
xi: newey congturn ob pc i.pelec*offnovember i.pelec*prescomp margin elg1000 fsuffrage fsuffrageint laghousecomp regist trend i.east|trend i.west|trend i.midwest|trend i.state if year>=840 & year<=940, lag(4) force


predict rsquare if e(sample)
corr congturn rsquare if e(sample)
di r(rho)^2

drop rsquare
